﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComicViewer.IManhua
{
    public class ComicBook
    {
        public string ID { get; set; }
        public string Name { get; set; }
        public Uri PreviewUri { get; set; }

        public List<ComicTable> Tables { get; set; }

        public ComicBook()
        {
            Tables = new List<ComicTable>();
        }

        public void AddTable(ComicTable table)
        {
            foreach (ComicTable ct in Tables)
            {
                if (ct.Id == table.Id)
                {
                    return;
                }
            }
            Tables.Add(table);
            table.Book = this;
        }
    }
}
